package com.rs.admin.module;


import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;


@Data
@ApiModel(description = "菜单信息")
@TableName("menu_info")
public class MenuInfo {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "父id",name = "pid")
    private Integer pid;

    @ApiModelProperty(value = "菜单名称",name = "name")
    private String name; //唯一值，删除是物理，如果是目录，该目录下面还有东西，也有一并删除，

    @ApiModelProperty(value = "路径",name = "path")
    private String path;

    @ApiModelProperty(value = "图标",name = "icon")
    private String icon;

    @ApiModelProperty(value = "排序",name = "orderNum")
    private Integer orderNum;

    @ApiModelProperty(value = "展示",name = "ok")
    private Integer ok; //0 不ok 1 ok

    @ApiModelProperty(value = "1 目录 2 菜单",name = "menuType")
    private Integer menuType; //1 目录 2 菜单

    @ApiModelProperty(value = "1：列表 2：设置",name = "dataType")
    private Integer dataType; //1：列表 2：设置

    @ApiModelProperty(value = "列表配置",name = "sheetCfg")
    private String sheetCfg; //列表配置

    @ApiModelProperty(value = "业务配置",name = "businessCfg")
    private String businessCfg; // 业务配置


    @TableField(exist = false)
    private List<MenuInfo> child;


}
